export default { // 维护过滤的方法
  NumFilter: (val:any) => { // 保留两位小数
    // console.log(val);
    return val.toFixed(2)
  },
   nameFilter: (val:string) => {
     let arr:Array<any> = [
     {name:'鲁智深',explan:'花和尚'},
     {name:'武松',explan:'行者'},
     {name:'周通',explan:'小霸王'},
     {name:'林冲',explan:'豹子头'}]

     return arr.find(item => item.name == val).explan;
   }
}